import type { Character } from "./Character";

export enum SkillType {
    Passive = '被动',
    Command = '指挥',
    Active = '主动',
    Strategy = '谋略'
}

export enum TargetType {
    Ally = '友军', // 只能对友军释放
    Enemy = '敌军', // 只能对敌军释放
    Any = '任意'   // 对友军或敌军均可释放
}

export interface Skill {
    name: string;
    type: SkillType;
    targetType: TargetType; // 技能目标类型
    execute: (caster: Character, target?: Character, log?: (message: string) => void) => void;
}